package com.yh.bean;



import java.util.List;



/*
 * 用户信息
 * 
 */
public class User {
	private int userid;//用户id
	private String user_name;//用户名
	private String password;//密码
	private String sex;//性别	
	private String real_name;//真实名字

	private String job;//职称
	private int dept_id;//部门id
	private int role_id;//角色id
	private int manager_id;
	private String image;//照片	
	private String phone;//电话
	private int state;//状态  0：禁用   1：可用
	
	private Dept dept;//部门 
	private Role role;//角色
	public int getUserid() {
		return userid;
	}
	public void setUserid(int userid) {
		this.userid = userid;
	}
	public String getUser_name() {
		return user_name;
	}
	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getReal_name() {
		return real_name;
	}
	public void setReal_name(String real_name) {
		this.real_name = real_name;
	}
	public String getJob() {
		return job;
	}
	public void setJob(String job) {
		this.job = job;
	}
	public int getDept_id() {
		return dept_id;
	}
	public void setDept_id(int dept_id) {
		this.dept_id = dept_id;
	}
	public int getRole_id() {
		return role_id;
	}
	public void setRole_id(int role_id) {
		this.role_id = role_id;
	}
	public int getManager_id() {
		return manager_id;
	}
	public void setManager_id(int manager_id) {
		this.manager_id = manager_id;
	}
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	public Dept getDept() {
		return dept;
	}
	public void setDept(Dept dept) {
		this.dept = dept;
	}
	public Role getRole() {
		return role;
	}
	public void setRole(Role role) {
		this.role = role;
	}
	@Override
	public String toString() {
		return "User [userid=" + userid + ", user_name=" + user_name + ", password=" + password + ", sex=" + sex
				+ ", real_name=" + real_name + ", job=" + job + ", dept_id=" + dept_id + ", role_id=" + role_id
				+ ", manager_id=" + manager_id + ", image=" + image + ", phone=" + phone + ", state=" + state
				+ ", dept=" + dept + ", role=" + role + "]";
	}

}
	
	